
def get_input_lines(filename):
    with open("CodeJamSolutions\\Input\\" + filename) as inputFile:
        return inputFile.readlines()


def write_output(filename, caseNum, result):
    mode = "a"
    if caseNum == 1:
        mode = "w"

    with open("CodeJamSolutions\\Output\\" + filename, mode) as outputFile:
        outputFile.write(str.format("Case #{0}: {1}\n", caseNum, result))